Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

632707 Views

Latest files of /cody/swapnilsparsh/30DaysOfJavaScript/201 - FlappyBird Game

bottom-background.png cody/swapnilsparsh/30DaysOfJavaScript/201 - FlappyBird Game/bottom-background.png
105 Views
0 Comments
Media file
Flappy Bird main.png cody/swapnilsparsh/30DaysOfJavaScript/201 - FlappyBird Game/Flappy Bird main.png
86 Views
0 Comments
Media file
fb-game-background.png cody/swapnilsparsh/30DaysOfJavaScript/201 - FlappyBird Game/fb-game-background.png
98 Views
0 Comments
Media file
images.jpg cody/swapnilsparsh/30DaysOfJavaScript/201 - FlappyBird Game/images.jpg
93 Views
0 Comments
Media file
flappybird-pipe.png cody/swapnilsparsh/30DaysOfJavaScript/201 - FlappyBird Game/flappybird-pipe.png
82 Views
0 Comments
Media file
app.js cody/swapnilsparsh/30DaysOfJavaScript/201 - FlappyBird Game/app.js
167 Views
0 Comments
document.addEventListener('DOMContentLoaded' , () => {
const bird = document.querySelector('.bird')
const gameDisplay = document.querySelector('.game-container')
const ground = document.querySelector('.ground-moving')

let birdLeft = 220
let birdBottom = 100
let gravity = 3
bird2.png cody/swapnilsparsh/30DaysOfJavaScript/201 - FlappyBird Game/bird2.png
72 Views
0 Comments
Media file
download.jpg cody/swapnilsparsh/30DaysOfJavaScript/201 - FlappyBird Game/download.jpg
77 Views
0 Comments
Media file
flappy-bird.png cody/swapnilsparsh/30DaysOfJavaScript/201 - FlappyBird Game/flappy-bird.png
92 Views
0 Comments
Media file
style.css cody/swapnilsparsh/30DaysOfJavaScript/201 - FlappyBird Game/style.css
118 Views
0 Comments
body {
display: flex;
}

.game-container {
width: 500px;
height: 730px;
position: absolute;
index.html cody/swapnilsparsh/30DaysOfJavaScript/201 - FlappyBird Game/index.html
320 Views
0 Comments
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Flappy Bird</title>
<link rel="stylesheet" href="style.css">
<script src="app.js" charset="utf-8"></script>
</head>